<!DOCTYPE HTML PUBLIC "-//W3C//DTDHTML 4.01 Transitional//EN"　"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
    <title>全一科技初版</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    
    <link rel="stylesheet" href="/pc/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/font_eolqem241z66flxr.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form">
    {{ csrf_field() }}
  
    <div class="layui-form-item">
        <label class="layui-form-label">设备型号</label>
        <div class="layui-input-block" style="width: 25em;">
            <input type ="text" name="" lay-verify="required" class="layui-input name" value="{{$data['name']}}" key="{{$data['id']}}" placeholder="请输入设备型号" >
        </div>
    </div>
     <div class="layui-form-item">
        <label class="layui-form-label">所属类型</label>
        <div class="layui-input-block" style="width: 25em;">
            <select name="" id="type_id" lay-verify="required" lay-search="">
                <option value="">请选择类型</option>
                @if(!empty($typeInfo))
                    @foreach($typeInfo as $val)
                        <option value="{{$val['id']}}" @if($data['type_id'] == $val['id']) selected @endif >{{$val['name']}}</option>
                    @endforeach
                @endif
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属供应商</label>
        <div class="layui-input-block" style="width: 25em;">
            <select name="" id="supplier_id" lay-verify="required" lay-search="" lay-filter="">
                <option value="0">请选择供应商</option>
                @if(!empty($supplierInfo))
                    @foreach($supplierInfo as $val)
                        <option value="{{$val['id']}}" @if($data['supplier_id'] == $val['id']) selected @endif >{{$val['name']}}</option>
                    @endforeach
                @endif
            </select>
        </div>
    </div>

   <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">解析规则</label>
    <div class="layui-input-block">
      <textarea name="rule" placeholder="请输入内容" class="layui-textarea" style="width: 350px;min-height: 150px;">{{$data['rule']}}</textarea>
    </div>
  </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="editModel">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="/pc/layui/layui.js"></script>
<script type="text/javascript" src="/pc/model/js/edit.js"></script>
</body>
</html>